﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.ServiceLocation;

namespace LogManager.Base.Data
{
    public class DefaultEventFactory : IEventFactory
    {
        public IEvent CreateTypedEvent(string typeId)
        {
            return ServiceLocator.Current.GetInstance(typeof(IEvent), typeId) as IEvent;
        }

        public Event CreateAnonymousEvent()
        {
            return new Event();
        }

        public Event CreateSimpleEvent()
        {
            return new Event();
        }
    }
}
